/*
* berton
*/
package com.pitop.material.api;

import com.pitop.material.entity.Material;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.ArrayList;
import java.util.List;

/**
 * 供应料材 api请求熔断器 熔断实现
 * @author berton
 */
@Component
public class MaterialFeignApiImpl implements MaterialFeignApi {
    /**
     * 查询Material一个详情信息
     * @param id 
     * @param code 编码
     * @param suppierCode 供应商编码
     * @return BeanRet
     */
    @Override
    public  Material load(@RequestParam("id") java.lang.Long id,@RequestParam("code") java.lang.String code,@RequestParam("suppierCode") java.lang.String suppierCode){
        return new Material();
    }


    /**
     * 根据条件id查询Material一个详情信息
     *
     * @param id 
     * @return BeanRet
     */
    @Override
    public   Material loadById(@RequestParam("id") java.lang.Long id){
        return new Material();
    }

    /**
     * 根据条件code查询Material一个详情信息
     *
     * @param code 编码
     * @return BeanRet
     */
    @Override
    public   Material loadByCode(@RequestParam("code") java.lang.String code){
        return new Material();
    }

    /**
     * 根据条件suppierCode查询Material一个详情信息
     *
     * @param suppierCode 供应商编码
     * @return BeanRet
     */
    @Override
    public   Material loadBySuppierCode(@RequestParam("suppierCode") java.lang.String suppierCode){
        return new Material();
    }


    /**
     * 查询Material信息集合
     *
     * @return 分页对象
     */
    @Override
    public    List<Material> list(@RequestBody Material material,int curPage,int pageSize){
        return new ArrayList();
    }


    /**
     * 查询Material信息集合
     *
     * @return 分页对象
     */
    @Override
    public   List<Material> listByPk(java.lang.Long id,java.lang.String code,java.lang.String suppierCode,int curPage,int pageSize){
        return new ArrayList();
    }


    @Override
    public Integer count(@RequestParam("id") java.lang.Long id,@RequestParam("code") java.lang.String code,@RequestParam("suppierCode") java.lang.String suppierCode){
         return 0;
    }

    @Override
    public Integer count(@RequestBody Material material) {
        return 0;
    }
    /**
     * 创建Material
     *
     * @return BeanRet
     */
    @Override
    public   Material build(@RequestBody Material material){
        return new Material();
    }


    /**
     * 修改Material
     *
     * @return BeanRet
     */
    @Override
    public   Material modify(@RequestBody Material material){
        return new Material();
    }

    /**
     * 删除Material
     *
     * @return BeanRet
     */
    @Override
    public  void delete(@RequestParam("id") java.lang.Long id,@RequestParam("code") java.lang.String code,@RequestParam("suppierCode") java.lang.String suppierCode){
        return;
    }
}
